+Fri Aug 21 02:31:26 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkmain.h:
+ * gtk/gtkmain.c (gtk_check_version): added a function to perform a
+ binary version check, returning a static string for error descriptions,
+ or NULL on success.
+
Thu Aug 20 20:08:15 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c ([un]draw_cursor): Check to see if we've
computed our geometry yet, and if not, ignore the request.
- gtk/gtktext.c (correct_cache_insert): Fiddled around]
+ * gtk/gtktext.c (correct_cache_insert): Fiddled around
some more. All the bug-test codes seem to work at once
now. (fingers crossed...)
+Fri Aug 21 02:31:26 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkmain.h:
+ * gtk/gtkmain.c (gtk_check_version): added a function to perform a
+ binary version check, returning a static string for error descriptions,
+ or NULL on success.
+
Thu Aug 20 20:08:15 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c ([un]draw_cursor): Check to see if we've
computed our geometry yet, and if not, ignore the request.
- gtk/gtktext.c (correct_cache_insert): Fiddled around]
+ * gtk/gtktext.c (correct_cache_insert): Fiddled around
some more. All the bug-test codes seem to work at once
now. (fingers crossed...)
+Fri Aug 21 02:31:26 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkmain.h:
+ * gtk/gtkmain.c (gtk_check_version): added a function to perform a
+ binary version check, returning a static string for error descriptions,
+ or NULL on success.
+
Thu Aug 20 20:08:15 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c ([un]draw_cursor): Check to see if we've
computed our geometry yet, and if not, ignore the request.
- gtk/gtktext.c (correct_cache_insert): Fiddled around]
+ * gtk/gtktext.c (correct_cache_insert): Fiddled around
some more. All the bug-test codes seem to work at once
now. (fingers crossed...)
+Fri Aug 21 02:31:26 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkmain.h:
+ * gtk/gtkmain.c (gtk_check_version): added a function to perform a
+ binary version check, returning a static string for error descriptions,
+ or NULL on success.
+
Thu Aug 20 20:08:15 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c ([un]draw_cursor): Check to see if we've
computed our geometry yet, and if not, ignore the request.
- gtk/gtktext.c (correct_cache_insert): Fiddled around]
+ * gtk/gtktext.c (correct_cache_insert): Fiddled around
some more. All the bug-test codes seem to work at once
now. (fingers crossed...)
+Fri Aug 21 02:31:26 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkmain.h:
+ * gtk/gtkmain.c (gtk_check_version): added a function to perform a
+ binary version check, returning a static string for error descriptions,
+ or NULL on success.
+
Thu Aug 20 20:08:15 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c ([un]draw_cursor): Check to see if we've
computed our geometry yet, and if not, ignore the request.
- gtk/gtktext.c (correct_cache_insert): Fiddled around]
+ * gtk/gtktext.c (correct_cache_insert): Fiddled around
some more. All the bug-test codes seem to work at once
now. (fingers crossed...)
+Fri Aug 21 02:31:26 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkmain.h:
+ * gtk/gtkmain.c (gtk_check_version): added a function to perform a
+ binary version check, returning a static string for error descriptions,
+ or NULL on success.
+
Thu Aug 20 20:08:15 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c ([un]draw_cursor): Check to see if we've
computed our geometry yet, and if not, ignore the request.
- gtk/gtktext.c (correct_cache_insert): Fiddled around]
+ * gtk/gtktext.c (correct_cache_insert): Fiddled around
some more. All the bug-test codes seem to work at once
now. (fingers crossed...)
+Fri Aug 21 02:31:26 1998 Tim Janik <timj@gtk.org>
+
+ * gtk/gtkmain.h:
+ * gtk/gtkmain.c (gtk_check_version): added a function to perform a
+ binary version check, returning a static string for error descriptions,
+ or NULL on success.
+
Thu Aug 20 20:08:15 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c ([un]draw_cursor): Check to see if we've
computed our geometry yet, and if not, ignore the request.
- gtk/gtktext.c (correct_cache_insert): Fiddled around]
+ * gtk/gtktext.c (correct_cache_insert): Fiddled around
some more. All the bug-test codes seem to work at once
now. (fingers crossed...)
static gint gtk_timeout_compare (gconstpointer a,
gconstpointer b);
+
const guint gtk_major_version = GTK_MAJOR_VERSION;
const guint gtk_minor_version = GTK_MINOR_VERSION;
const guint gtk_micro_version = GTK_MICRO_VERSION;
#endif /* G_ENABLE_DEBUG */
+gchar*
+gtk_check_version (guint required_major,
+ guint required_minor,
+ guint required_micro)
+{
+ if (required_major > GTK_MAJOR_VERSION)
+ return "Gtk+ version to old (major mismatch)";
+ if (required_major < GTK_MAJOR_VERSION)
+ return "Gtk+ version to new (major mismatch)";
+ if (required_minor > GTK_MINOR_VERSION)
+ return "Gtk+ version to old (minor mismatch)";
+ if (required_minor < GTK_MINOR_VERSION)
+ return "Gtk+ version to new (minor mismatch)";
+ if (required_micro < GTK_MICRO_VERSION - GTK_BINARY_AGE)
+ return "Gtk+ version to new (micro mismatch)";
+ if (required_micro > GTK_MICRO_VERSION)
+ return "Gtk+ version to old (micro mismatch)";
+ return NULL;
+}
+
+
gint gtk_use_mb = -1;
void
extern const guint gtk_micro_version;
extern const guint gtk_binary_age;
extern const guint gtk_interface_age;
+gchar* gtk_check_version (guint required_major,
+ guint required_minor,
+ guint required_micro);
/* Initialization, exit, mainloop and miscellaneous routines